import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { resolve, dirname } from "path";
import { fileURLToPath } from "url";

const __dirname = dirname(fileURLToPath(import.meta.url));

export default defineConfig({
  plugins: [vue()],
  server: {
    port: 3000, // 将端口设置为3000
  },
  resolve: {
    alias: {
      "@": resolve(__dirname, "src"), // @ 映射到 src 目录
    },
  },
});
